home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Cursor Blink.xpl < prev    next >
Text File  |  2002-11-23  |  2KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Interface\Effects"
  5. "NAME"="Cursor Blink Rate"
  6. "VERSION"="1.32"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Blinking Rate"
  9. "DESCRIPTION 1"="The text cursor (insertion point aka "caret") has a specified blinking rate, effective in all applications using the standard block cursor dialog box, like Notepad. Default value is 530 (the cursor blinks 2 times per second), the fastest blink rate is 1 (16 times per second), to disable blinking completely enter -1, and a value of 65535 translates into a very slow blinking rate."
  10. "DESCRIPTION 2"="NOTE: A value smaller than 5 may make the cursor disappear, if it stops moving for more than 10 seconds. To make it reappear, just move the cursor again."
  11. "AUTHOR"="Xteq Systems (CptSiskoX)"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="Thanks to Fraser D. Smithson [frasers@mediaone.net] for the bug notice."
  15.  
  16. 'Declaration of some constants
  17. sP="HKCU\Control Panel\Desktop\"
  18. sV1="CursorBlinkRate"
  19.  
  20. 'Called when the Plugin is started
  21. Sub Plugin_Initialize
  22.  i=RegReadValue(sp & sv1)
  23.  SetUIElement 1,i 
  24. End Sub
  25.  
  26. 'Called when the Plugin should validate the Data the user has entered
  27. Sub Plugin_CheckData(ElementIndex)
  28. End Sub
  29.  
  30. 'Called when the Plugin should apply the changes
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  i=GetUIElement(1)
  33.  
  34.  if IsNumeric(i) then
  35.     if i<-1 or i>65535 then
  36.        Call MsgError("Please enter a value between -1 and 65535!")
  37.     else
  38.        Call RegWriteValue(sp & sv1,i,1)
  39.        Call Restart
  40.     end if
  41.  else
  42.    Call MsgError("Please enter a value between -1 and 65535!")
  43.  end if
  44.  
  45. End Sub
  46.  
  47. 'Called when the Plugin is about to be removed from memory
  48. Sub Plugin_Terminate
  49. End Sub
  50.